﻿CREATE TRIGGER LoanExecution_Tracking_Delete
ON [dbo].[LoanExecution] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanExecution_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanExecution_Tracking s JOIN DELETED i
    ON s.LoanExecutionID = i.LoanExecutionID
END











